
OBJS =	main.o \
		MaKI.o \
		featureDetection/SimpleFeatureDetector.o featureDetection/SURF.o \
		correlation/VarianceCorrelator.o \
		gui/GUI.o \
		output/DataWriter.o \
		stdafx.o

UTIL_OBJS = utils/Output.o utils/ImageUtils.o utils/ParFile.o utils/Pixel.o utils/MathUtils.o utils/Settings.o

INCLUDES =  -I/usr/include/opencv/ -I/usr/local/include -I/usr/include

LIBS =		-lhighgui -lcv -lcvaux -ltiff -L/usr/lib

#PKG_CONFIG_GTK = -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lgtk-x11-2.0 -lpangomm-1.4 -lglibmm-2.4 -lsigc-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 


PREPROCESSOR_FLAGS = -DLINUX

CXXFLAGS =	-O2 -g -Wall -fmessage-length=0 -g -pg -rdynamic -fPIC  $(INCLUDES) $(PREPROCESSOR_FLAGS)
#CXXFLAGS = `pkg-config gtkmm-2.4 --cflags --libs` $(INCLUDES)

TARGET =	MaKI

ALL = $(OBJS) $(UTIL_OBJS)




$(TARGET):	$(ALL) 
	$(CXX) -o $(TARGET) $(ALL) $(LIBS) -pg -rdynamic

all:	$(TARGET)

clean:
	rm -f $(ALL) $(TARGET)
	
new: clean all
